import request from '@/utils/request'

// 分类列表
export const categoryList = (params) => {
	return request('GET', '/app/recruit/category/list', params)
}
// 招聘列表
export const recruitmentList = (params) => {
	return request('GET', '/app/recruit/recruitment/list', params)
}
// 发布招聘
export const recruitment = (data) => {
	return request('POST', '/app/recruit/recruitment', data)
}
// 获取招聘详细信息
export const recruitmentDetail = (id) => {
	return request('GET', `/app/recruit/recruitment/${id}`)
}
// 标签列表
export const queryLabelList = (params) => {
	return request('GET', '/app/recruit/label/list', params)
}

// 删除招聘信息
export const deleteRecruitment = (id) => {
	return request('DELETE', `/app/recruit/recruitment/${id}`)
}

// 编辑招聘(包括上下架)
export const editRecruitment = (data) => {
	return request('PUT', `/app/recruit/recruitment`,data)
}

// 保证金
export const queryRecruitBond = (params) => {
  return request('GET', '/app/recruit/recruitment/bond', params)
}
